public WorksheetChart AddChart( ChartType chartType, Rect boundsInTwips, Action<WorksheetChart> chartInitializer )
Exception | Description |
---|---|
System.ArgumentNullException | if worksheet is null. |
Infragistics.Documents.Excel.MockClasses.InvalidEnumArgumentException | chartType is not defined in the Infragistics.Documents.Excel.Charts.ChartType enumeration. |
System.InvalidOperationException | if a chart is being added to the Shapes collection of another Chart is null. |
System.InvalidOperationException | if a Workbook.CurrentFormat doesn't support Chart mofications, e.g. 'Excel97To2003' or 'Excel97To2003Template'. |
Target Platforms: Android 4.4+, iOS 8+
Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+